<?php 
session_start();
if (isset($_COOKIE['username'])){
    $_SESSION['username'] = $_COOKIE['username'];
    $_SESSION['islogin'] = 1;
}
if(isset($_SESSION['islogin'])){
    echo $_SESSION['username']."，你好，欢迎来到个人中心！<br />";
    echo "<a href='logout.php'>注销</a>";
}
else {
    echo "你还未登录，请<a href = 'login.html'>登录</a>";
}
?>

